package com.imagination.applet.domain.virtualidentity.repository;

import com.imagination.applet.domain.virtualidentity.model.UserVirtualIdentity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserVirtualIdentityRepository extends JpaRepository<UserVirtualIdentity, Long> {

    List<UserVirtualIdentity> queryByUserIdAndTrainingStatus(Long userId, Integer trainingStatus);

    List<UserVirtualIdentity> queryByUserIdAndTrainingStatusAndDeleted(Long userId, Integer trainingStatus, Integer deleted);

    List<UserVirtualIdentity> queryByTrainingStatusAndDeleted(Integer trainingStatus, Integer deleted);
}
